﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ZKImgInfo.aspx.cs" Inherits="ZKImgInfo" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>实物地质资料中心--钻孔图片信息</title>
    <link rel="shortcut icon" href="pic/mark.ico" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="css/ZKImgInfo.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        function displayOneTable() {
            var tds = document.getElementsByTagName("table");
            //var tabs=[];
            //for(var i=0;i<tds.length-1;i++)
            //{
            //    for(var j=1;j<tds.length;j++)
            //    {
            //        if(tds[i].className.length>0 && tds[i].className!=tds[j].className && tds[i].title!=tds[j].title && tds[i].title.length>0 && tds[i].className==tds[i].title)
            //        {

            //            tabs.push(tds[i]);
            //            tds[i].title="display";

            //        }
            //        else{
            //            tds[i].title="nodisplay";
            //        }
            //    }
            //}
            var a = -1;//flag
            for (var m = 0; m < tds.length; m++) {
                if (a != tds[m].title) {

                    a = tds[m].title;//如果a的值和tds【i】title的值不同，那么把tds【i】title的赋给a，然后继续比较
                    //tds[m].title="display";

                }
                else {
                    tds[m].title = "nodisplay";
                }

            }

            for (var i = 0; i < tds.length; i++)//根据tds【i】title的值tds【i】className的值进行比较判断该DOM元素是否显示
            {
                if (tds[i].className.length > 0 && tds[i].className != tds[i].title && tds[i].title.length > 0) {


                    tds[i].style.display = "none";

                }
                else {
                    tds[i].style.display = " ";
                }
            }
        }
    </script>

</head>
<body onload="displayOneTable()">
    <form id="form1" runat="server">
        <table width="1069" cellspacing="0" border="1" align="center">
            <tbody>
                <tr>
                    <td width="388" align="center" height="40">钻孔属性</td>
                    <td align="center" colspan="5">钻孔全部图形信息</td>
                </tr>
                <tr>
                    <td width="388" height="600" rowspan="4">
                        <asp:DataList ID="dl_FileList" runat="server">
                            <ItemTemplate>
                                <table width="383" cellspacing="0" border="1">

                                    <tr>
                                        <td width="105" height="30">档号:</td>
                                        <td width="293"><%#Eval("ZL_FILE_ID")%></td>
                                    </tr>
                                    <tr>
                                        <td height="30">馆藏机构:</td>
                                        <td><%=OGC_DEPART%></td>
                                    </tr>
                                    <tr>
                                        <td height="30">项目名称:</td>
                                        <td><%=OPEOJ_NAME%></td>
                                    </tr>
                                    <tr>
                                        <td height="30">矿区名称:</td>
                                        <td><%=OMINE_NAME%></td>
                                    </tr>
                                    <tr>
                                        <td height="30">项目编号:</td>
                                        <td><%=OPEOJ_CODE%></td>
                                    </tr>
                                    <tr>
                                        <td height="30">行政区:</td>
                                        <td><%=OADMIN_REGION%></td>
                                    </tr>
                                    <tr>
                                        <td height="30">图幅名称:</td>
                                        <td><%=OSHEET_NAME%></td>
                                    </tr>
                                    <tr>
                                        <td height="30">汇交人:</td>
                                        <td><%=OHX_PEOPLE%></td>
                                    </tr>

                                    <tr>
                                       <td height="30">地理坐标经度:</td>
                                        <td><%#Eval("ZK_LONGITUDE").ToString().Substring(0,3)%>度<%#Eval("ZK_LONGITUDE").ToString().Substring(3,2)%>分<%#Eval("ZK_LONGITUDE").ToString().Substring(5)%>秒</td>
                                    </tr>
                                    <tr>
                                        <td height="30">地理坐标纬度:</td>
                                        <td><%#Eval("ZK_LATITUDE").ToString().Substring(0,2)%>度<%#Eval("ZK_LATITUDE").ToString().Substring(2,2)%>分<%#Eval("ZK_LATITUDE").ToString().Substring(4)%>秒</td>
                                    </tr>
                                    <tr>
                                        <td height="30">钻取岩心长度:</td>
                                        <td><%#Eval("ZK_CORELEN")%></td>
                                    </tr>
                                    <tr>
                                        <td height="30">钻取岩屑数量:</td>
                                        <td><%#Eval("ZKYX_COUNT")%></td>
                                    </tr>
                                    <tr>
                                        <td height="30">钻孔编号:</td>
                                        <td><%#Eval("ZL_FILE_ID")%></td>
                                    </tr>
                                    <tr>
                                        <td height="30">开孔日期:</td>
                                        <td><%#Eval("START_DATE")%></td>
                                    </tr>
                                    <tr>
                                        <td height="30">终孔日期:</td>
                                        <td><%#Eval("END_DATE")%></td>
                                    </tr>
                                    <tr>
                                        <td height="30">馆藏岩心长度:</td>
                                        <td><%#Eval("GC_CORELEN")%></td>
                                    </tr>
                                    <tr>
                                        <td height="30">馆藏岩屑数量:</td>
                                        <td><%#Eval("GCYX_COUNT")%></td>
                                    </tr>
                                    <tr>
                                        <td height="30">直角坐标</td>
                                        <td>X:<%#Eval("ZK_X")%>-Y:<%#Eval("ZK_Y")%>-Z:<%#Eval("ZK_H")%></td>
                                    </tr>


                                </table>
                            </ItemTemplate>

                        </asp:DataList>
                    </td>
                    <td width="149" align="center" height="37">钻孔深度(m)</td>
                    <td align="center" height="35" colspan="2">岩心图</td>
                    <td align="center" colspan="2">岩心描述</td>
                </tr>
                <tr>
                    <td width="149" align="center" height="29">
                        <span class="fonts">
                            <%--<input id="chk2" class="btn_2k3 test" type="button" value="显示全部">--%>
                        </span>
                    </td>
                    <td width="79" align="center" height="29">岩心深度(m)</td>
                    <td width="96" align="center">岩心图片</td>
                    <td width="105" align="center">深度(m)</td>
                    <td width="210" align="center">岩心描述</td>
                </tr>
                <tr>
                    <td>
                        <div style="WIDTH: 150px; HEIGHT: 547px; BACKGROUND-COLOR: #FFFFFF; overflow-y: scroll; SCROLLBAR-FACE-COLOR: #c2d3fc; SCROLLBAR-HIGHLIGHT-COLOR: #c2d3fc; SCROLLBAR-SHADOW-COLOR: #FFFFFF; SCROLLBAR-3DLIGHT-COLOR: #FFFFFF; SCROLLBAR-ARROW-COLOR: #FFFFFF; SCROLLBAR-TRACK-COLOR: #FFFFFF; SCROLLBAR-DARKSHADOW-COLOR: #FFFFFF">
                            <asp:DataList ID="repeater_ZKImg" runat="server" RepeatColumns="1">
                                <ItemTemplate>
                                    <table width="150" cellspacing="0" border="0" class="<%#Eval("HC")%>" title="<%#Eval("HC")%>" id="deepTable">
                                        <tbody>
                                            <tr>
                                                <td align="center" height="20px">
                                                    <a href="YXPic.aspx?zkcode=<%#Eval("ZK_CODE")%>&zkfid=<%#Eval("ZL_FILE_ID")%>&zkhc=<%#Eval("HC")%>" target="yanxintu"><%#Eval("HC_START_DEEP") %>~~<%#Eval("HC_END_DEEP") %></a><br />
                                                </td>
                                            </tr>

                                        </tbody>
                                    </table>
                                </ItemTemplate>
                            </asp:DataList>
                        </div>
                    </td>
                    <td height="547" colspan="2">
                        <div id="Layer2">
                            <iframe id="yanxintu" name="yanxintu" width="100%" height="550" frameborder="0"></iframe>
                        </div>
                    </td>
                    <td rowspan="2" colspan="2">
                        <iframe id="miaoshu" name="miaoshu" width="330" height="550" frameborder="0" src="YXDescribe.aspx?zkcode=<%=ZKCODE %>&zkfid=<%=ZKFILEID %>"></iframe>

                    </td>
                </tr>
                <tr>
                    <td align="center" height="14" colspan="3"></td>
                </tr>
            </tbody>
        </table>
        <br>
        <%--        <center>
<input type="submit" onclick="window.open("../relevancyTable/ProjectList.jsp?prj_code=xm0000002","","width=850,height=700,scrollbars=yes");" value="项目信息">
<input type="submit" onclick="window.open("../relevancyTable/DepositList1.jsp?prj_code=xm0000002","","width=850,height=700,scrollbars=yes");" value="矿区信息">
<input type="submit" onclick="window.open("../relevancyTable/DrillList.jsp?prj_code=xm0000002","","width=850,height=700,scrollbars=yes");" value="钻孔信息">
<input type="submit" onclick="window.open("../relevancyTable/SwectionList.jsp?prj_code=xm0000002","","width=850,height=700,scrollbars=yes");" value="实测剖面信息">
</center>--%>
    </form>
</body>
</html>
